package com.xkdx.guangguang.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.xkdx.caipiao.R;
import com.xkdx.guangguang.module.statics.IConstants;

public class RefreshFragment extends Fragment {
	View view;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		view=inflater.inflate(R.layout.refresh, container, false);
		IConstants.isRefresh=true;
		ImageView refresh=(ImageView)view.findViewById(R.id.refresh);
		refresh.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				IConstants.isRefresh=false;
				getFragmentManager().popBackStack();
			}
		});
		return view;
	}
	
}
